import request from '@/utils/request'

//订单管理
const ORDEREMPLOYEE_URL = 'api/admin/ordersEmployee'

export const submit = (orders)=>{
   return request.post(ORDEREMPLOYEE_URL+'/submit',orders)
}

export const refund = (oders)=>{
    return request.post(ORDEREMPLOYEE_URL+'/refund',oders)
}

export const queryOrdersById = (id)=>{
    return request.get(ORDEREMPLOYEE_URL+'/'+id)
}

export const ordersEmployeePage = (beginTime,endTime,number,page,pageSize,status,storeId,userId)=>{
    return request.get(ORDEREMPLOYEE_URL+'/page?beginTime='+beginTime
        +'&endTime='+endTime
        +'&number='+number
        +'&page='+page
        +'&pageSize='+pageSize
        +'&status='+status
        +'&storeId='+storeId
        +'&userId='+userId
        +'&phone='+'')
}

export const updateOrders = (orders)=>{
    return request.put(ORDEREMPLOYEE_URL,orders)
}